<!doctype html>
<html lang="en" xmlns:th="http://thymeleaf.org">
<head th:replace="common/htmlHead :: common_header(~{::title})">
    <title>登录</title>
</head>
<body>
<!-- loader Start -->
<div id="loading">
    <div id="loading-center">
    </div>
</div>
<!-- loader END -->
<!-- Sign in Start -->
<section class="sign-in-page">
    <div class="container sign-in-page-bg mt-5 p-0">
        <div class="row no-gutters">

            <div class="col-md-6 text-center" th:fragment="common_login">
                <div class="sign-in-detail text-white">
                    <a class="sign-in-logo mb-5" href="#"><img th:src="@{/images/logo-white.png}" class="img-fluid" alt="logo"></a>
                    <div class="owl-carousel" data-autoplay="true" data-loop="true" data-nav="false" data-dots="true"
                         data-items="1" data-items-laptop="1" data-items-tab="1" data-items-mobile="1"
                         data-items-mobile-sm="1" data-margin="0">
                        <div class="item">
                            <img th:src="@{/images/login/1.png}" class="img-fluid mb-4" alt="logo">
                            <h4 class="mb-1 text-white">Tips</h4>
                            <p>保持开心</p>
                        </div>
                        <div class="item">
                            <img th:src="@{/images/login/2.png}" class="img-fluid mb-4" alt="logo">
                            <h4 class="mb-1 text-white">Tips</h4>
                            <p>不要熬夜</p>
                        </div>
                        <div class="item">
                            <img th:src="@{/images/login/3.png}" class="img-fluid mb-4" alt="logo">
                            <h4 class="mb-1 text-white">Tips</h4>
                            <p>定期运动</p>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-md-6 position-relative">
                <div class="sign-in-from">
                    <h1 class="mb-0">登录</h1>
                    <p>输入您的电子邮件地址和密码。</p>
                    <form class="mt-4" th:action="@{/sign-in}" method="post">
                        <div class="form-group">
                            <label for="exampleInputEmail1">邮箱</label>
                            <input type="email" name="Email" class="form-control mb-0" id="exampleInputEmail1"
                                   placeholder="Email" required>
                        </div>
                        <div class="form-group">
                            <label for="exampleInputPassword1">密码</label>
                            <a th:href="@{/torecoverpw}" class="float-right">忘记密码?</a>
                            <input type="password" name="Password" class="form-control mb-0" id="exampleInputPassword1"
                                   placeholder="Password" required>
                        </div>
                        <div class="d-inline-block w-100">
                            <!--<div class="custom-control custom-checkbox d-inline-block mt-2 pt-1">
                                <input type="checkbox" class="custom-control-input" id="customCheck1" value="true">
                                <label class="custom-control-label" for="customCheck1" name="remember" >记住我</label>
                            </div>-->
                            <button type="submit" class="btn btn-primary float-right">登录</button>
                            <span th:text="${info}" style="color: green"/>
                            <span th:text="${msg}" th:style="${msg == '注册成功！'} ?'color:green' : 'color:red'"></span>
                        </div>
                        <div class="sign-info">
                            <span class="dark-color d-inline-block line-height-2">没有账号? <a
                                    th:href="@{/tosign-up}">注册</a></span>
                            <ul class="iq-social-media">
                                <li><a href="https://www.zhihu.com/people/LIEFox.com"><i class="ri-zhihu-line"></i></a></li>
                                <li><a href="#"><i class="ri-vuejs-line"></i></a></li>
                                <li><a href="https://gitee.com/cxq21/dashboard/projects"><i class="ri-git-branch-fill"></i></a></li>
                            </ul>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section>
<!-- Sign in END -->

<!--使用公有js-->
<div th:replace="common/htmlHead::common_js(~{::script})">

</div>

</body>
</html>